﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="RlWeightReportWebForm.aspx.cs" Inherits="ReportViewerForMvc.RlWeightReportWebForm" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
<%@ Register assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body style="margin: 0px; padding: 0px;">
    <form id="form1" runat="server">
        <div>
           <asp:ScriptManager ID="ScriptManager1" runat="server">
                 <Scripts>
                <asp:ScriptReference Assembly="ReportViewerForMvc"     Name="ReportViewerForMvc.Scripts.PostMessage.js" />
                </Scripts> 
            </asp:ScriptManager>
            <asp:UpdatePanel runat="server">
                <ContentTemplate>
                    <rsweb:ReportViewer ID="ReportViewer1" runat="server" ShowPrintButton="false" SizeToReportContent="True">
                    </rsweb:ReportViewer> 
                </ContentTemplate>
            </asp:UpdatePanel> 

        <asp:HiddenField ID="hidCallBack" runat="server" />
        <asp:LinkButton ID="lbCallBack" runat="server"  ></asp:LinkButton>    
        </div>
    </form>
    <script src="../Scripts/jquery.min.js"></script>
    <script src="../Scripts/report-ex.js"></script>
<script type="text/javascript">

        $(function() {
            $("#ReportViewer1").ReportViewAddTool({ url: { print1: "print" } });

        }); 
</script>
</body>
</html>